using System;
using System.Collections.Generic;
using System.Text;

namespace PocketLibrary
{
    public class XMLRPCParameter
    {
        private XMLRPCDataType dataType = XMLRPCDataType.NotSet;

        public XMLRPCDataType Type
        {
            get { return dataType; }
            set { dataType = value; }
        }

        private string paramValue;

        public string Value
        {
            get { return paramValue; }
            set { paramValue = value; }
        }

        public XMLRPCParameter(string value)
        {
            this.Value = value;
            this.dataType = XMLRPCDataType.String;
        }

        public XMLRPCParameter(string value, XMLRPCDataType type)
        {
            this.Value = value;
            this.dataType = type;
        }
    }

    public enum XMLRPCDataType
    {
        NotSet,
        String,
        Int,
        Float,
        Boolean,
        CData,
    }
}
